#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;

    string multiply(string &num1, string&num2) {
        int n1 = 0;
        int n2 = 0;
        int m = 1;
        for (int i=num1.size()-1;i>=0;i--)
        {
        
            n1 += (num1[i] - '0') * m;
            m *= 10;
        }
        m = 1;
        for (int i = num2.size() - 1; i >= 0; i--)
        {
           
            n2 += (num2[i] - '0') * m;
            m *= 10;
        }

     
        long long  sum = n1 * n2;
        string ret;


        int count = 0;
        int tmp = sum;
        if (sum < 9)
        {
            ret += sum + '0';
            return ret;
        }
        while (tmp)
        {
            tmp /= 10;
            count++;
        }
        int chu = 1;
        while (count-1)
        {
            chu *= 10;
            count--;
        }

        while (chu)
        {
            ret += (sum / chu + '0');
            sum %= chu;
            chu /= 10;
        }
        return ret;
    }
int main()
{
    string num1("408");
    string num2("5");

   string s1= multiply(num1, num2);
   cout << s1;
   return 0;
}